import * as newsDescDao from '@/common/dao/g_news_desc.dao';

export async function getNewsDescList(query: any, offset: number = 0, limit: number = 10) {
    return await newsDescDao.getNewsDescList(offset, limit);
}

export async function getNewsDescById(id: number) {
    return await newsDescDao.getNewsDescById(id);
}

export async function createNewsDesc(data: any) {
    return await newsDescDao.createNewsDesc(data);
}

export async function updateNewsDesc(id: number, data: any) {
    return await newsDescDao.updateNewsDesc(id, data);
}

export async function deleteNewsDesc(id: number) {
    return await newsDescDao.deleteNewsDesc(id);
}

export async function getNewsDescByAlias(alias: string) {
    return await newsDescDao.getNewsDescByAlias(alias);
} 